#include<iostream>
using namespace std;
int main(){
	float m,sum;
	int count;
	scanf("%f%d",&m,&count);
	sum=m;
	for(int i=0;i<count;i++){
		m/=2;
		sum+=2*m;
	}
	printf("%.2f %.2f\n",m,sum-2*m);
	return 0;
}
